#!coding=utf-8
from django.db import models
from sa.models import SuperAdmin
# from enterprise_basic_information.models import User as u

class Park(models.Model):
	name = models.CharField(u'园区名称',max_length=200)
	address = models.CharField(u'地址',max_length=100)
	area = models.CharField(u'占地面积',max_length=100)
	address_path = models.FileField(u'园区地图附件',upload_to= 'static\\upload\\park_files\\%Y\\%m-%d',null=True,blank=True)
	rank = models.CharField(u'级别',max_length=100)
	production_type = models.CharField(u'产业类型',max_length=300)
	create_time = models.CharField(u'建立时间',max_length=100)
	info = models.CharField(u'园区简介',max_length=2000,null=True)
	geo_center_point = models.CharField(u'地理位置中心点坐标',max_length=100)
	geo_points = models.TextField(u'地理位置点集合',default='')
	geo_extent = models.TextField(u'地理比例尺',default='')
   # user = models.ForeignKey(u, related_name='this is custom user')

class LogManage(models.Model):
	name = models.CharField(u'事件对象', max_length=50)
	desc = models.CharField(u'事件描述', max_length=2000)
	handler = models.CharField(u'事件处理者', max_length=100)
	date = models.DateTimeField(u'事件记录时间', auto_now_add=True)